package org.bee.model;

import java.util.Date;

/**
 * @author 陈国松
 * @date 2025-01-10 11:06:36
 * @description 定时任务调度表Model层
 * 表 batch_job
 */
public class BatchJob {
    /**
     * 任务Id
     */
    private String id;
    /**
     * 任务名称
     */
    private String name;
    /**
     * 任务分组
     */
    private String jobGroup;
    /**
     * 任务bean
     */
    private String bean;
    /**
     * 执行表达式
     */
    private String cron;
    /**
     * 任务执行失败的策略
     */
    private String errorStrategy;
    /**
     * 状态（1正常 0暂停）
     */
    private Boolean status;
    /**
     * 是否并发执行（1允许 0禁止）
     */
    private Boolean concurrent;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改人
     */
    private String updateUser;
    /**
     * 修改时间
     */
    private Date updateTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 是否删除(0-未删除 1-已删除)
     */
    private Boolean isDeleted;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup == null ? null : jobGroup.trim();
    }

    public String getBean() {
        return bean;
    }

    public void setBean(String bean) {
        this.bean = bean == null ? null : bean.trim();
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron == null ? null : cron.trim();
    }

    public String getErrorStrategy() {
        return errorStrategy;
    }

    public void setErrorStrategy(String errorStrategy) {
        this.errorStrategy = errorStrategy == null ? null : errorStrategy.trim();
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Boolean getConcurrent() {
        return concurrent;
    }

    public void setConcurrent(Boolean concurrent) {
        this.concurrent = concurrent;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

}